home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
271_02
/
isleap.doc
< prev
next >
Wrap
Text File
|
1987-08-18
|
626b
|
39 lines
NAME
isleap -- check if year is a leap year
SYNOPSIS
r = isleap(year);
int r; returns TRUE if leapyear, else FALSE
int year; year value
DESCRIPTION
This function simply checks the specified year to return a
TRUE if the specified year is a leap year.
EXAMPLE
if(isleap(1986)) printf("This is a leap year");
else printf("This is not a leap year");
This function is found in SMTCx.LIB for the Turbo-C Compiler.